/*

package com.yc.house.model;


import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import javax.persistence.*;
import java.util.Date;

*/
/**
 *  设备表 entity.
 *  @author  yc
 *//*

@Entity
@Table(name = "t_s_devices")
@Inheritance(strategy = InheritanceType.JOINED)//将父类、子类放在不同的表中，并且建立相应的外键，确定之间的关系
@JsonIgnoreProperties({ "region"}) //解决懒加载出错
public class TSDevices extends IdEntity implements java.io.Serializable {

	private String name;  // '设备名称'
	private String model;  // '设备类型'
  	private String devicePower; //'装置电源'
  	private String operationPower; //'操作电源'
  	private String ratedVoltage;// '额定电压'
  	private String ratedCurrent;//'额定电流'
  	private String productNumber;// '产品编号'
  	private Date productDate;// '生产日期'
  	private String productFactory;//'生产厂家'
  	private String longitude;// '经度'
  	private String latitude;// '纬度'
  	private Integer online;//'在离线标识符' 0离线/ 1在线
	private String ip;  // 'ipaddress
	private String depart_id;  // '所属部门,如xx供电局 20191211
	private String soleIdentification; //设备参数的唯一标识
	private TSDevicesHistory devicesHistory;  // '用于查询设备和设备历史
	private TSDevRegion region;  // '设备台区

	@Transient //不创建
	public TSDevicesHistory getDevicesHistory() {
		return devicesHistory;
	}
	public void setDevicesHistory(TSDevicesHistory devicesHistory) {
		this.devicesHistory = devicesHistory;
	}

	public TSDevices(String name, String model, String devicePower, String operationPower, String ratedVoltage,
					 String ratedCurrent, String productNumber, Date productDate, String productFactory, String longitude,
					 String latitude, Integer online) {
		super();
		this.name = name;
		this.model = model;
		this.devicePower = devicePower;
		this.operationPower = operationPower;
		this.ratedVoltage = ratedVoltage;
		this.ratedCurrent = ratedCurrent;
		this.productNumber = productNumber;
		this.productDate = productDate;
		this.productFactory = productFactory;
		this.longitude = longitude;
		this.latitude = latitude;
		this.online = online;
	}

	public TSDevices() {
		super();
	}

	@Column(name = "name", length = 32)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "model", length = 32)
	public String getModel() {
		return model;
	}


	public void setModel(String model) {
		this.model = model;
	}

	@Column(name = "devicePower", length = 32)
	public String getDevicePower() {
		return devicePower;
	}


	public void setDevicePower(String devicePower) {
		this.devicePower = devicePower;
	}

	@Column(name = "operationPower", length = 32)
	public String getOperationPower() {
		return operationPower;
	}


	public void setOperationPower(String operationPower) {
		this.operationPower = operationPower;
	}

	@Column(name = "ratedVoltage", length = 32)
	public String getRatedVoltage() {
		return ratedVoltage;
	}


	public void setRatedVoltage(String ratedVoltage) {
		this.ratedVoltage = ratedVoltage;
	}

	@Column(name = "ratedCurrent", length = 32)
	public String getRatedCurrent() {
		return ratedCurrent;
	}


	public void setRatedCurrent(String ratedCurrent) {
		this.ratedCurrent = ratedCurrent;
	}

	@Column(name = "ip", length = 32)
	public String getIp() {
		return ip;
	}


	public void setIp(String ip) {
		this.ip = ip;
	}


	@Column(name = "productNumber", length = 32)
	public String getProductNumber() {
		return productNumber;
	}


	public void setProductNumber(String productNumber) {
		this.productNumber = productNumber;
	}

	@Column(name = "productDate")
	public java.util.Date getProductDate() {
		return productDate;
	}


	public void setProductDate(Date productDate) {
		this.productDate = productDate;
	}

	@Column(name = "productFactory", length = 32)
	public String getProductFactory() {
		return productFactory;
	}


	public void setProductFactory(String productFactory) {
		this.productFactory = productFactory;
	}

	@Column(name = "longitude", length = 26)
	public String getLongitude() {
		return longitude;
	}


	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	@Column(name = "latitude", length = 26)
	public String getLatitude() {
		return latitude;
	}


	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	@Column(name = "online", length = 4)
	public Integer getOnline() {
		return online;
	}


	public void setOnline(Integer online) {
		this.online = online;
	}
	
	@Column(name = "soleIdentification", length = 32)
	public String getSoleIdentification() {
		return soleIdentification;
	}
	public void setSoleIdentification(String soleIdentification) {
		this.soleIdentification = soleIdentification;
	}
	
	@Override
	public String toString() {
		return "TSDevices [name=" + name + ", model=" + model + ", devicePower=" + devicePower + ", operationPower="
				+ operationPower + ", ratedVoltage=" + ratedVoltage + ", ratedCurrent=" + ratedCurrent
				+ ", productNumber=" + productNumber + ", productDate=" + productDate + ", productFactory="
				+ productFactory + ", longitude=" + longitude + ", latitude=" + latitude + ", online=" + online + "]";
	}

	@Column(name = "depart_id", length = 100)
	public String getDepart_id() {
		return depart_id;
	}

	public void setDepart_id(String depart_id) {
		this.depart_id = depart_id;
	}

	@ManyToOne(fetch = FetchType.LAZY,targetEntity = TSDevRegion.class)
	@JoinColumn(name = "region_id",referencedColumnName = "id")//外键
	public TSDevRegion getRegion() {
		return region;
	}

	public void setRegion(TSDevRegion region) {
		this.region = region;
	}
}
*/
